﻿using Repository;
using Repository.IRepository;
using Services.IServices;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Services.Services
{
    public class BaseServices<T> : IBaseServices<T> where T : class
    {

        private readonly Tracetothesourcedbcontext _db;
        public BaseServices(Tracetothesourcedbcontext db)
        {
            _db = db;
        }
        public IQueryable<T> GetAll()
        {
            return _db.Set<T>().AsQueryable();
        }
    }
}
